//
//  collectCell.m
//  quickLook
//
//  Created by J on 15/9/9.
//  Copyright (c) 2015年 JZJ. All rights reserved.
//

#import "collectCell.h"
#import "Header.h"
@interface collectCell ()
@property (weak, nonatomic) IBOutlet UIImageView *cover_image_url;

//topic

@property (weak, nonatomic) IBOutlet UILabel *title;


@property (weak, nonatomic) IBOutlet UILabel *topicTitle;



//user
@property (weak, nonatomic) IBOutlet UILabel *nickname;







@end
#import "Model.h"
@implementation collectCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)refreshTopicsWithModel:(Model*)model
{

    
    [_cover_image_url sd_setImageWithURL:[NSURL URLWithString:model.cover_image_url]];
    
    
    _title.text=model.title;
    
    _topicTitle.text=model.latest_comic_title;
    
    _nickname.text=model.user[@"nickname"];
    

}

- (void)refreshComicsWithModel:(Model*)model
{
    [_cover_image_url sd_setImageWithURL:[NSURL URLWithString:model.cover_image_url]];
    
    
    _title.text=model.title;
    
    _topicTitle.text=model.topic[@"title"];
    
    _nickname.text=model.topic[@"user"][@"nickname"];



}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
